package com.example.litterpainterdemo.utils

import android.icu.text.SimpleDateFormat
import androidx.room.OnConflictStrategy
import java.util.Date
import java.util.Locale

object TimeUtils {
    fun time():String{
        return SimpleDateFormat("yyyy.MM.dd", Locale.CHINA).format(Date())
    }

    fun timeName():String{
        val time = SimpleDateFormat("yyyyMMddHHmmss", Locale.CHINA).format(Date())
        return "${time}.jpg"
    }
}